package com.ship.dispatch.bean.fob;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ship.common.core.mapping.Label;
import com.ship.common.core.mapping.TableColumn;
import com.ship.dispatch.annotation.ModifiableField;
import com.ship.dispatch.bean.BaseBean;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 *@title SpFobBaseBean
 *@description 业务流程点基础bean
 *@author yl
 *@create 2023/12/14 0014
 */
@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
public class SpFobBaseBean extends BaseBean {
    @Label(value = "执行方案id")
    @TableColumn
    private Long schemeDetailId;
    @Label(value = "流程任务id")
    @TableColumn
    private String taskId;
    @Label(value = "任务候选人")
    @TableColumn
    private String addAssigeners;
    @Label(value = "状态")
    @TableColumn
    private Integer status;
    @Label(value = "计划结束时间")
    @TableColumn
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date planEndDate;
    @Label(value = "实际结束时间")
    @TableColumn
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date realEndDate;
    @Label(value = "字段1")
    @TableColumn
    @ModifiableField
    private String field1;
    @Label(value = "字段2")
    @TableColumn
    @ModifiableField
    private String field2;
    @Label(value = "字段3")
    @TableColumn
    @ModifiableField
    private String field3;
    /**
     * 附件
     */
    @Label(value = "附件")
    @TableColumn
    @ModifiableField(name = "附件")
    private String fiels;
    @Label(value = "流程实例id")
    @TableColumn
    private String proceeInstanceId;
    @TableField(exist = false)
    private Boolean idEdit;
}
